{extend name='admin@main'}

{block name="button"}

{/block}

<style>
.nowrap{ white-space:pre-wrap !important;	}
</style>

{block name="content"}
<div class="think-box-shadow">
    {include file='comment/index_search'}
    <table class="layui-table margin-top-10" lay-skin="line">
        {notempty name='list'}
        <thead>
        <tr>
            <th class='list-table-check-td think-checkbox'>
                <input data-auto-none data-check-target='.list-check-box' type='checkbox'>
            </th>
            <th class='list-table-sort-td'>
                <button type="button" data-reload class="layui-btn layui-btn-xs">刷 新</button>
            </th>
            <th class='text-left nowrap' >评论订单号</th>

            <th class='text-left nowrap' style="width: 100px;">电站信息</th>
            <th class='text-left nowrap' >添加时间</th>
            <th class='text-left nowrap' >用户信息</th>
            <th class='text-left nowrap' >评论内容</th>
            <th class='text-left nowrap' >评论图片</th>
            <th class='text-left nowrap' >评论级别</th>


        </tr>
        </thead>
        {/notempty}
        <tbody>
        {foreach $list as $key=>$vo}
        <tr data-dbclick>
            <td class='list-table-check-td think-checkbox'><input class="list-check-box" value='{$vo.id}' type='checkbox'></td>

            <td class='text-left nowrap'><span style="line-height: 60px">{$vo.id|default='--'}</span></td>
            <td class='text-left ' >{$vo.order_no|default='--'}</td>

            <td class='text-left ' >{$vo.station_name|default='--'}</td>
            <td class='text-left ' >{$vo.create_at|default='--'}</td>
            <td class='text-left ' >{$vo.user.username|default='--'}<br>{$vo.user.phone|default='--'}</td>
            <td class='text-left ' >{$vo.comment|default='--'}</td>

            <td class='text-left ' >
                <?php foreach($vo['img_arr'] as $k =>&$v){ ?>
                <img data-tips-image style="width:60px;height:60px" src="{$v|default=''}" class="margin-right-5 text-top">
                <?php }?>
            </td>

            <td class='text-left ' >{$vo.status_r|raw|default='--'}</td>

        </tr>
        {/foreach}
        </tbody>
    </table>

    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}

</div>
{/block}
